-- GENERATED SPELL FOR [Skullsplitter Berserker] --


function spell0_783(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_783', 20302, 1)
end

function Sorts_783(pUnit, Event)
local choix_sorts_783 = math.random(0, 0)
if choix_sorts_783 == 0 then
pUnit:RegisterEvent('spell0_783', 1, 1)
end
end

function mob783_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_783', math.random(1500, 3000), 1)
end

function mob783_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob783_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob783_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(783, 1, 'mob783_Action')
RegisterUnitEvent(783, 2, 'mob783_Leave')
RegisterUnitEvent(783, 3, 'mob783_Kill')
RegisterUnitEvent(783, 4, 'mob783_Die')
